package v1

import dai.core.base.ShaderProgram
import org.joml.Matrix4f

abstract class RenderItem(
    val shader: ShaderProgram,
    val mesh: Mesh,
){

    companion object{
        val tmpModelViewMatrix = Matrix4f()
    }

    // 一个指向物体 worldMatrix 的引用
    var worldMatrix: Matrix4f? = null
    abstract fun render(projMatrix: Matrix4f, viewMatrix: Matrix4f)
}